/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainFrame.java
 *
 * Created on 2011-5-8, 14:44:47
 */
package junchangmis;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.UnsupportedLookAndFeelException;
import junchangmis.student.*;
import junchangmis.codecSetting.*;
import junchangmis.teacher.*;

/**
 *
 * @author developers
 */
public class MainFrame extends javax.swing.JFrame {

    /** Creates new form MainFrame */
    public MainFrame() {
        super();
        initComponents();
        this.setLocationRelativeTo(null);
        this.setTitle("军昌文化艺术学校管理系统");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelTop = new javax.swing.JPanel();
        jLabelTop = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel2 = new javax.swing.JPanel();
        jButtonNewComerIput = new javax.swing.JButton();
        jButtonNewToFormal = new javax.swing.JButton();
        jButtonNewComerTable = new javax.swing.JButton();
        jButtonFormalStuTable = new javax.swing.JButton();
        jButtonDutyTable = new javax.swing.JButton();
        jButtonInquire = new javax.swing.JButton();
        jButtonBirInquire = new javax.swing.JButton();
        jButtonFee = new javax.swing.JButton();
        jButtonFirstFee = new javax.swing.JButton();
        jButtonGetFee = new javax.swing.JButton();
        jButtonNewDuty = new javax.swing.JButton();
        jPanel4 = new javax.swing.JPanel();
        jButtonTeacherInput = new javax.swing.JButton();
        jButtonDutyYM = new javax.swing.JButton();
        jButtonDutyPerson = new javax.swing.JButton();
        jButtonWage = new javax.swing.JButton();
        jButtonTeaLookUp = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jButtonCodeNew = new javax.swing.JButton();
        jPanel5 = new javax.swing.JPanel();
        jComboBoxSkin = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabelTop.setBackground(new java.awt.Color(102, 255, 255));
        jLabelTop.setFont(new java.awt.Font("宋体-方正超大字符集", 0, 36));
        jLabelTop.setText("军昌文化艺术学校管理系统");
        jPanelTop.add(jLabelTop);

        jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.LINE_AXIS));

        jTabbedPane1.setFont(new java.awt.Font("微软雅黑", 1, 24));

        jButtonNewComerIput.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonNewComerIput.setText("试听生信息录入");
        jButtonNewComerIput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNewComerIputActionPerformed(evt);
            }
        });

        jButtonNewToFormal.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonNewToFormal.setText("试听生转为正式生");
        jButtonNewToFormal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNewToFormalActionPerformed(evt);
            }
        });

        jButtonNewComerTable.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonNewComerTable.setText("生成试听生登记表");
        jButtonNewComerTable.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNewComerTableActionPerformed(evt);
            }
        });

        jButtonFormalStuTable.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonFormalStuTable.setText("生成交费登记表(所有学生)");
        jButtonFormalStuTable.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonFormalStuTableActionPerformed(evt);
            }
        });

        jButtonDutyTable.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonDutyTable.setText("生成正式生考勤表");
        jButtonDutyTable.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDutyTableActionPerformed(evt);
            }
        });

        jButtonInquire.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonInquire.setText("学生个体查询与修改");
        jButtonInquire.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonInquireActionPerformed(evt);
            }
        });

        jButtonBirInquire.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonBirInquire.setText("学生生日查询");
        jButtonBirInquire.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBirInquireActionPerformed(evt);
            }
        });

        jButtonFee.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonFee.setText("学生交费录入(二次交费)");
        jButtonFee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonFeeActionPerformed(evt);
            }
        });

        jButtonFirstFee.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonFirstFee.setText("生成交费登记表(初次交费)");
        jButtonFirstFee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonFirstFeeActionPerformed(evt);
            }
        });

        jButtonGetFee.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonGetFee.setText("生成催费通知单");
        jButtonGetFee.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGetFeeActionPerformed(evt);
            }
        });

        jButtonNewDuty.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonNewDuty.setText("生成试听生考勤表");
        jButtonNewDuty.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNewDutyActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jButtonGetFee, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonBirInquire, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonNewComerIput, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonFormalStuTable, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(28, 28, 28)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonNewDuty, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonNewToFormal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonDutyTable, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonFee, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(30, 30, 30)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonFirstFee)
                    .addComponent(jButtonInquire)
                    .addComponent(jButtonNewComerTable))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButtonBirInquire, jButtonDutyTable, jButtonFee, jButtonFirstFee, jButtonFormalStuTable, jButtonInquire, jButtonNewComerIput, jButtonNewComerTable, jButtonNewToFormal});

        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNewComerIput)
                    .addComponent(jButtonNewToFormal)
                    .addComponent(jButtonNewComerTable))
                .addGap(27, 27, 27)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonFormalStuTable)
                    .addComponent(jButtonDutyTable)
                    .addComponent(jButtonInquire))
                .addGap(26, 26, 26)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonBirInquire)
                    .addComponent(jButtonFee)
                    .addComponent(jButtonFirstFee))
                .addGap(26, 26, 26)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonGetFee)
                    .addComponent(jButtonNewDuty))
                .addContainerGap(70, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("学生管理", jPanel2);

        jButtonTeacherInput.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonTeacherInput.setText("教师考核录入");
        jButtonTeacherInput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonTeacherInputActionPerformed(evt);
            }
        });

        jButtonDutyYM.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonDutyYM.setText("按月生成考勤考核表");
        jButtonDutyYM.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDutyYMActionPerformed(evt);
            }
        });

        jButtonDutyPerson.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonDutyPerson.setText("按人生成考勤考核表");
        jButtonDutyPerson.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDutyPersonActionPerformed(evt);
            }
        });

        jButtonWage.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonWage.setText("生成考勤及工资表");
        jButtonWage.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonWageActionPerformed(evt);
            }
        });

        jButtonTeaLookUp.setFont(new java.awt.Font("华文细黑", 0, 24)); // NOI18N
        jButtonTeaLookUp.setText("教师信息查询");
        jButtonTeaLookUp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonTeaLookUpActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(86, 86, 86)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonTeacherInput)
                    .addComponent(jButtonWage))
                .addGap(52, 52, 52)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonTeaLookUp, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonDutyYM, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(43, 43, 43)
                .addComponent(jButtonDutyPerson)
                .addContainerGap(135, Short.MAX_VALUE))
        );

        jPanel4Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButtonDutyPerson, jButtonDutyYM, jButtonTeacherInput, jButtonWage});

        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(49, 49, 49)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButtonDutyYM)
                        .addComponent(jButtonDutyPerson))
                    .addComponent(jButtonTeacherInput))
                .addGap(28, 28, 28)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonWage)
                    .addComponent(jButtonTeaLookUp))
                .addContainerGap(192, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("教师管理", jPanel4);

        jButtonCodeNew.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButtonCodeNew.setText("编码查看与设置");
        jButtonCodeNew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCodeNewActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(217, 217, 217)
                .addComponent(jButtonCodeNew)
                .addContainerGap(645, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(44, 44, 44)
                .addComponent(jButtonCodeNew)
                .addContainerGap(268, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("专业班级编码管理", jPanel3);

        jComboBoxSkin.setFont(new java.awt.Font("华文细黑", 0, 24));
        jComboBoxSkin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "com.jtattoo.plaf.mcwin.McWinLookAndFeel", "com.sun.java.swing.plaf.motif.MotifLookAndFeel", "com.sun.java.swing.plaf.windows.WindowsLookAndFeel", "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel" }));

        jButton1.setFont(new java.awt.Font("华文细黑", 0, 24));
        jButton1.setText("确定");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jButton1)
                    .addComponent(jComboBoxSkin, javax.swing.GroupLayout.PREFERRED_SIZE, 728, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(287, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addComponent(jComboBoxSkin, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(49, 49, 49)
                .addComponent(jButton1)
                .addContainerGap(159, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("皮肤设置", jPanel5);

        jPanel1.add(jTabbedPane1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelTop, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 1078, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 1068, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanelTop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(100, 100, 100))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonNewToFormalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewToFormalActionPerformed
        // TODO add your handling code here:
        newToFormalUI fr = new newToFormalUI(this);
        this.setVisible(false);
        fr.setVisible(true);
}//GEN-LAST:event_jButtonNewToFormalActionPerformed

    private void jButtonNewComerIputActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewComerIputActionPerformed
        // TODO add your handling code here:
        newComerInputUI fr = new newComerInputUI(this);
        this.setVisible(false);//隐藏自己
        fr.setVisible(true);//显示子窗口
}//GEN-LAST:event_jButtonNewComerIputActionPerformed

    private void jButtonNewComerTableActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewComerTableActionPerformed
        // TODO add your handling code here:
        newComerTableDialog fr = new newComerTableDialog(this, true, this);
        //this.setVisible(false);//隐藏自己
        fr.setVisible(true);//显示子窗口
    }//GEN-LAST:event_jButtonNewComerTableActionPerformed

    private void jButtonDutyTableActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDutyTableActionPerformed
        // TODO add your handling code here:
        dutyTableDialog fr = new dutyTableDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonDutyTableActionPerformed

    private void jButtonFormalStuTableActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFormalStuTableActionPerformed
        // TODO add your handling code here:
        formalStuTableDialog fr = new formalStuTableDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonFormalStuTableActionPerformed

    private void jButtonInquireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInquireActionPerformed
        // TODO add your handling code here:
        stuChooseDialog fr = new stuChooseDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonInquireActionPerformed

    private void jButtonBirInquireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBirInquireActionPerformed
        // TODO add your handling code here:
        birthChooseDialog fr = new birthChooseDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonBirInquireActionPerformed

    private void jButtonFeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFeeActionPerformed
        // TODO add your handling code here:
        feeChooseDialog fr = new feeChooseDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonFeeActionPerformed

    private void jButtonFirstFeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFirstFeeActionPerformed
        // TODO add your handling code here:
        firstFeeDialog fr = new firstFeeDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonFirstFeeActionPerformed

    private void jButtonGetFeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonGetFeeActionPerformed
        // TODO add your handling code here:
        getFeeDialog fr = new getFeeDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonGetFeeActionPerformed

    private void jButtonCodeNewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCodeNewActionPerformed
        // TODO add your handling code here:
        codecUINew fr = new codecUINew(this);
        this.setVisible(false);//隐藏自己
        fr.setVisible(true);//显示子窗口
    }//GEN-LAST:event_jButtonCodeNewActionPerformed

    private void jButtonTeacherInputActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonTeacherInputActionPerformed
        // TODO add your handling code here:
        TeacherInputUI fr = new TeacherInputUI(this);
        this.setVisible(false);//隐藏自己
        fr.setVisible(true);//显示子窗口
    }//GEN-LAST:event_jButtonTeacherInputActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                try {
                    // TODO add your handling code here:
                    MainFrame.setDefaultLookAndFeelDecorated(true);
                    UIManager.setLookAndFeel(jComboBoxSkin.getSelectedItem().toString());
                    System.out.println(jComboBoxSkin.getSelectedItem().toString());
                    //  setVisible(false);
                    dispose();
                    MainFrame fr = new MainFrame();
                    fr.setVisible(true);
                } catch (ClassNotFoundException ex) {
                    Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
                } catch (InstantiationException ex) {
                    Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
                } catch (IllegalAccessException ex) {
                    Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
                } catch (UnsupportedLookAndFeelException ex) {
                    Logger.getLogger(MainFrame.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButtonDutyYMActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDutyYMActionPerformed
        // TODO add your handling code here:
        dutyYMTableDialog fr = new dutyYMTableDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonDutyYMActionPerformed

    private void jButtonDutyPersonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDutyPersonActionPerformed
        // TODO add your handling code here:
        dutyPersonTableDialog fr = new dutyPersonTableDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonDutyPersonActionPerformed

    private void jButtonWageActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonWageActionPerformed
        // TODO add your handling code here:
        wageTableDialog fr = new wageTableDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonWageActionPerformed

    private void jButtonNewDutyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonNewDutyActionPerformed
        // TODO add your handling code here:
        newDutyTableDialog fr = new newDutyTableDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonNewDutyActionPerformed

    private void jButtonTeaLookUpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonTeaLookUpActionPerformed
        // TODO add your handling code here:
        teaChooseDialog fr = new teaChooseDialog(this, true, this);
        fr.setVisible(true);
    }//GEN-LAST:event_jButtonTeaLookUpActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MainFrame().setVisible(true);
            }
        });
        // System.out.println(UIManager.getSystemLookAndFeelClassName());
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButtonBirInquire;
    private javax.swing.JButton jButtonCodeNew;
    private javax.swing.JButton jButtonDutyPerson;
    private javax.swing.JButton jButtonDutyTable;
    private javax.swing.JButton jButtonDutyYM;
    private javax.swing.JButton jButtonFee;
    private javax.swing.JButton jButtonFirstFee;
    private javax.swing.JButton jButtonFormalStuTable;
    private javax.swing.JButton jButtonGetFee;
    private javax.swing.JButton jButtonInquire;
    private javax.swing.JButton jButtonNewComerIput;
    private javax.swing.JButton jButtonNewComerTable;
    private javax.swing.JButton jButtonNewDuty;
    private javax.swing.JButton jButtonNewToFormal;
    private javax.swing.JButton jButtonTeaLookUp;
    private javax.swing.JButton jButtonTeacherInput;
    private javax.swing.JButton jButtonWage;
    private javax.swing.JComboBox jComboBoxSkin;
    private javax.swing.JLabel jLabelTop;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanelTop;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
